package cn.rknn.iot.entity.iot.emun;

/**
* post 均为设备上报topic ,其余为平台下发
*/
public enum ChannelTopic {

    /**
    * channelKey = property
    */
    PROPERTY_POST("/sys/${productKey}/${deviceKey}/thing/event/property/post"),

    PROPERTY_POST_REPLY("/sys/${productKey}/${deviceKey}/thing/event/property/post_reply"),

    SERVICE_INVOKE("/sys/${productKey}/${deviceKey}/thing/service/${channelKey}"),

    SERVICE_INVOKE_REPLY("/sys/${productKey}/${deviceKey}/thing/service/${channelKey}_reply"),

    EVENT_POST("/sys/${productKey}/${deviceKey}/thing/event/${channelKey}/post"),

    EVENT_POST_REPLY("/sys/${productKey}/${deviceKey}/thing/event/${channelKey}/post_reply"),

    /**
     * 上报固件版本
     */
    OTA_INFORM_POST("/sys/${productKey}/${deviceKey}/thing/ota/inform"),

    /**
     * 下发固件升级指令
     */
    OTA_UPGRADE("/sys/${productKey}/${deviceKey}/thing/ota/upgrade"),

    /**
    * channelKey = log
    */
    LOG_POST("/sys/${productKey}/${deviceKey}/thing/log/post"),

    LOG_POST_REPLY("/sys/${productKey}/${deviceKey}/thing/log/post_reply");

    private final String value;

    ChannelTopic(String value) {
        this.value = value;
    }


    public String value() {
        return value;
    }

}